package com.qianyu.project.service.smj;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qianyu.project.entity.ProjectSalary;

import java.util.List;
import java.util.Map;

public interface smjLaberSalaryService {
    /**
     * 添加项目工资
     * @param p_id
     * @param type
     * @param year
     * @param menth
     * @param apply_date
     * @param handler_id
     * @param attach_ids
     * @return
     */
    String AddLaberSalary(String p_id, String type, String year, String menth, String apply_date, String handler_id, String attach_ids);

    /**
     * 添加工资明细
     * @param salary_id
     * @param name
     * @param type
     * @param day
     * @param salaryday
     * @param salary
     * @param salaryplus
     * @param borrowsalary
     * @param insurancesalary
     * @param deductsalary
     */
    void AddWorkList(String salary_id, String name, String type, String day, String salaryday, String salary, String salaryplus, String borrowsalary, String insurancesalary, String deductsalary);

    /**
     * 提交审批
     * @param projectSalary
     * @return
     */
    Integer  FlowSalary(ProjectSalary projectSalary);

    /**
     * 查询工资列表
     * @param params
     * @return
     */
    IPage<Map<String, Object>> listlabersalary(Map<String, String> params);

    /**
     * 查询工资明细
     * @param id
     * @return
     */
    List<Map<String, Object>> getWorkList(String id);

    /**
     * 查询审批过程
     * @param id
     * @return
     */
    List<Map<String, Object>> getfromaudit(String id);
}
